3.1.58 \(\int \frac {d+e x^2+f x^4}{x^2 (a+b x^2+c x^4)} \, dx\) [58]

Optimal. Leaf size=213 \[ -\frac {d}{a x}-\frac {\left (c d-a f+\frac {b c d-2 a c e+a b f}{\sqrt {b^2-4 a c}}\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b-\sqrt {b^2-4 a c}}}\right )}{\sqrt {2} a \sqrt {c} \sqrt {b-\sqrt {b^2-4 a c}}}-\frac {\left (c d-a f-\frac {b c d-2 a c e+a b f}{\sqrt {b^2-4 a c}}\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b+\sqrt {b^2-4 a c}}}\right )}{\sqrt {2} a \sqrt {c} \sqrt {b+\sqrt {b^2-4 a c}}} \]

[Out]

-d/a/x-1/2*arctan(x*2^(1/2)*c^(1/2)/(b-(-4*a*c+b^2)^(1/2))^(1/2))*(c*d-a*f+(a*b*f-2*a*c*e+b*c*d)/(-4*a*c+b^2)^
(1/2))/a*2^(1/2)/c^(1/2)/(b-(-4*a*c+b^2)^(1/2))^(1/2)-1/2*arctan(x*2^(1/2)*c^(1/2)/(b+(-4*a*c+b^2)^(1/2))^(1/2
))*(c*d-a*f+(-a*b*f+2*a*c*e-b*c*d)/(-4*a*c+b^2)^(1/2))/a*2^(1/2)/c^(1/2)/(b+(-4*a*c+b^2)^(1/2))^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 0.57, antiderivative size = 213, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 3, integrand size = 30, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.100, Rules used = {1678, 1180, 211} \begin {gather*} -\frac {\text {ArcTan}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b-\sqrt {b^2-4 a c}}}\right ) \left (\frac {a b f-2 a c e+b c d}{\sqrt {b^2-4 a c}}-a f+c d\right )}{\sqrt {2} a \sqrt {c} \sqrt {b-\sqrt {b^2-4 a c}}}-\frac {\text {ArcTan}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {\sqrt {b^2-4 a c}+b}}\right ) \left (-\frac {a b f-2 a c e+b c d}{\sqrt {b^2-4 a c}}-a f+c d\right )}{\sqrt {2} a \sqrt {c} \sqrt {\sqrt {b^2-4 a c}+b}}-\frac {d}{a x} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(d + e*x^2 + f*x^4)/(x^2*(a + b*x^2 + c*x^4)),x]

[Out]

-(d/(a*x)) - ((c*d - a*f + (b*c*d - 2*a*c*e + a*b*f)/Sqrt[b^2 - 4*a*c])*ArcTan[(Sqrt[2]*Sqrt[c]*x)/Sqrt[b - Sq
rt[b^2 - 4*a*c]]])/(Sqrt[2]*a*Sqrt[c]*Sqrt[b - Sqrt[b^2 - 4*a*c]]) - ((c*d - a*f - (b*c*d - 2*a*c*e + a*b*f)/S
qrt[b^2 - 4*a*c])*ArcTan[(Sqrt[2]*Sqrt[c]*x)/Sqrt[b + Sqrt[b^2 - 4*a*c]]])/(Sqrt[2]*a*Sqrt[c]*Sqrt[b + Sqrt[b^
2 - 4*a*c]])

Rule 211

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[a/b, 2]/a)*ArcTan[x/Rt[a/b, 2]], x] /; FreeQ[{a, b}, x]
&& PosQ[a/b]

Rule 1180

Int[((d_) + (e_.)*(x_)^2)/((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4), x_Symbol] :> With[{q = Rt[b^2 - 4*a*c, 2]}, Di
st[e/2 + (2*c*d - b*e)/(2*q), Int[1/(b/2 - q/2 + c*x^2), x], x] + Dist[e/2 - (2*c*d - b*e)/(2*q), Int[1/(b/2 +
 q/2 + c*x^2), x], x]] /; FreeQ[{a, b, c, d, e}, x] && NeQ[b^2 - 4*a*c, 0] && NeQ[c*d^2 - a*e^2, 0] && PosQ[b^
2 - 4*a*c]

Rule 1678

Int[(Pq_)*((d_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4)^(p_.), x_Symbol] :> Int[ExpandIntegrand[(d*x
)^m*Pq*(a + b*x^2 + c*x^4)^p, x], x] /; FreeQ[{a, b, c, d, m}, x] && PolyQ[Pq, x^2] && IGtQ[p, -2]

Rubi steps

\begin {align*} \int \frac {d+e x^2+f x^4}{x^2 \left (a+b x^2+c x^4\right )} \, dx &=\int \left (\frac {d}{a x^2}+\frac {-b d+a e-(c d-a f) x^2}{a \left (a+b x^2+c x^4\right )}\right ) \, dx\\ &=-\frac {d}{a x}+\frac {\int \frac {-b d+a e+(-c d+a f) x^2}{a+b x^2+c x^4} \, dx}{a}\\ &=-\frac {d}{a x}-\frac {\left (c d-a f-\frac {b c d-2 a c e+a b f}{\sqrt {b^2-4 a c}}\right ) \int \frac {1}{\frac {b}{2}+\frac {1}{2} \sqrt {b^2-4 a c}+c x^2} \, dx}{2 a}+\frac {\left (-c d+a f+\frac {2 a c e-b (c d+a f)}{\sqrt {b^2-4 a c}}\right ) \int \frac {1}{\frac {b}{2}-\frac {1}{2} \sqrt {b^2-4 a c}+c x^2} \, dx}{2 a}\\ &=-\frac {d}{a x}-\frac {\left (c d-a f-\frac {2 a c e-b (c d+a f)}{\sqrt {b^2-4 a c}}\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b-\sqrt {b^2-4 a c}}}\right )}{\sqrt {2} a \sqrt {c} \sqrt {b-\sqrt {b^2-4 a c}}}-\frac {\left (c d-a f-\frac {b c d-2 a c e+a b f}{\sqrt {b^2-4 a c}}\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b+\sqrt {b^2-4 a c}}}\right )}{\sqrt {2} a \sqrt {c} \sqrt {b+\sqrt {b^2-4 a c}}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.19, size = 253, normalized size = 1.19 \begin {gather*} \frac {-\frac {2 d}{x}-\frac {\sqrt {2} \left (b c d+c \sqrt {b^2-4 a c} d-2 a c e+a b f-a \sqrt {b^2-4 a c} f\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b-\sqrt {b^2-4 a c}}}\right )}{\sqrt {c} \sqrt {b^2-4 a c} \sqrt {b-\sqrt {b^2-4 a c}}}+\frac {\sqrt {2} \left (b c d-c \sqrt {b^2-4 a c} d-2 a c e+a b f+a \sqrt {b^2-4 a c} f\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} x}{\sqrt {b+\sqrt {b^2-4 a c}}}\right )}{\sqrt {c} \sqrt {b^2-4 a c} \sqrt {b+\sqrt {b^2-4 a c}}}}{2 a} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(d + e*x^2 + f*x^4)/(x^2*(a + b*x^2 + c*x^4)),x]

[Out]

((-2*d)/x - (Sqrt[2]*(b*c*d + c*Sqrt[b^2 - 4*a*c]*d - 2*a*c*e + a*b*f - a*Sqrt[b^2 - 4*a*c]*f)*ArcTan[(Sqrt[2]
*Sqrt[c]*x)/Sqrt[b - Sqrt[b^2 - 4*a*c]]])/(Sqrt[c]*Sqrt[b^2 - 4*a*c]*Sqrt[b - Sqrt[b^2 - 4*a*c]]) + (Sqrt[2]*(
b*c*d - c*Sqrt[b^2 - 4*a*c]*d - 2*a*c*e + a*b*f + a*Sqrt[b^2 - 4*a*c]*f)*ArcTan[(Sqrt[2]*Sqrt[c]*x)/Sqrt[b + S
qrt[b^2 - 4*a*c]]])/(Sqrt[c]*Sqrt[b^2 - 4*a*c]*Sqrt[b + Sqrt[b^2 - 4*a*c]]))/(2*a)

________________________________________________________________________________________

Maple [A]
time = 0.06, size = 220, normalized size = 1.03

method result size
default \(\frac {4 c \left (-\frac {\left (a f \sqrt {-4 a c +b^{2}}-c d \sqrt {-4 a c +b^{2}}-a b f +2 a c e -b c d \right ) \sqrt {2}\, \arctanh \left (\frac {c x \sqrt {2}}{\sqrt {\left (-b +\sqrt {-4 a c +b^{2}}\right ) c}}\right )}{8 c \sqrt {-4 a c +b^{2}}\, \sqrt {\left (-b +\sqrt {-4 a c +b^{2}}\right ) c}}+\frac {\left (a f \sqrt {-4 a c +b^{2}}-c d \sqrt {-4 a c +b^{2}}+a b f -2 a c e +b c d \right ) \sqrt {2}\, \arctan \left (\frac {c x \sqrt {2}}{\sqrt {\left (b +\sqrt {-4 a c +b^{2}}\right ) c}}\right )}{8 c \sqrt {-4 a c +b^{2}}\, \sqrt {\left (b +\sqrt {-4 a c +b^{2}}\right ) c}}\right )}{a}-\frac {d}{a x}\) \(220\)
risch \(-\frac {d}{a x}+\frac {\left (\munderset {\textit {\_R} =\RootOf \left (c^{4} d^{4}-2 b \,c^{3} e \,d^{3}+b^{2} c^{2} d^{2} e^{2}+2 a \,c^{3} d^{2} e^{2}+\left (16 a^{5} c^{3}-8 b^{2} c^{2} a^{4}+b^{4} c \,a^{3}\right ) \textit {\_Z}^{4}+\left (-4 a^{4} b c \,f^{2}+16 a^{4} c^{2} e f +a^{3} b^{3} f^{2}-4 a^{3} b^{2} c e f -8 a^{3} b \,c^{2} d f -4 a^{3} b \,c^{2} e^{2}-16 a^{3} c^{3} d e +2 a^{2} b^{3} c d f +a^{2} b^{3} c \,e^{2}+12 a^{2} b^{2} c^{2} d e +12 a^{2} b \,c^{3} d^{2}-2 a \,b^{4} c d e -7 a \,b^{3} c^{2} d^{2}+b^{5} c \,d^{2}\right ) \textit {\_Z}^{2}+b^{4} d^{2} f^{2}+2 a^{2} b c d e \,f^{2}+4 a \,b^{2} c d \,e^{2} f +2 a b \,c^{2} d^{2} e f -2 a^{2} b c \,e^{3} f -4 a^{2} c^{2} d \,e^{2} f -2 a \,b^{3} d e \,f^{2}-4 a \,b^{2} c \,d^{2} f^{2}-2 b^{3} c \,d^{2} e f +a^{4} f^{4}-2 a^{3} b e \,f^{3}-4 a^{3} c d \,f^{3}+2 a^{3} c \,e^{2} f^{2}+2 a^{2} b^{2} d \,f^{3}+a^{2} b^{2} e^{2} f^{2}+6 a^{2} c^{2} d^{2} f^{2}-4 a \,c^{3} d^{3} f +2 b^{2} c^{2} d^{3} f +a^{2} c^{2} e^{4}-2 a b \,c^{2} d \,e^{3}\right )}{\sum }\textit {\_R} \ln \left (\left (2 c^{4} d^{4}-4 b \,c^{3} e \,d^{3}+2 b^{2} c^{2} d^{2} e^{2}+4 a \,c^{3} d^{2} e^{2}+\left (40 a^{5} c^{3}-22 b^{2} c^{2} a^{4}+3 b^{4} c \,a^{3}\right ) \textit {\_R}^{4}+\left (-11 a^{4} b c \,f^{2}+36 a^{4} c^{2} e f +3 a^{3} b^{3} f^{2}-10 a^{3} b^{2} c e f -14 a^{3} b \,c^{2} d f -7 a^{3} b \,c^{2} e^{2}-36 a^{3} c^{3} d e +4 a^{2} b^{3} c d f +2 a^{2} b^{3} c \,e^{2}+24 a^{2} b^{2} c^{2} d e +25 a^{2} b \,c^{3} d^{2}-4 a \,b^{4} c d e -14 a \,b^{3} c^{2} d^{2}+2 b^{5} c \,d^{2}\right ) \textit {\_R}^{2}+2 b^{4} d^{2} f^{2}+4 a^{2} b c d e \,f^{2}+8 a \,b^{2} c d \,e^{2} f +4 a b \,c^{2} d^{2} e f -4 a^{2} b c \,e^{3} f -8 a^{2} c^{2} d \,e^{2} f -4 a \,b^{3} d e \,f^{2}-8 a \,b^{2} c \,d^{2} f^{2}-4 b^{3} c \,d^{2} e f +2 a^{4} f^{4}-4 a^{3} b e \,f^{3}-8 a^{3} c d \,f^{3}+4 a^{3} c \,e^{2} f^{2}+4 a^{2} b^{2} d \,f^{3}+2 a^{2} b^{2} e^{2} f^{2}+12 a^{2} c^{2} d^{2} f^{2}-8 a \,c^{3} d^{3} f +4 b^{2} c^{2} d^{3} f +2 a^{2} c^{2} e^{4}-4 a b \,c^{2} d \,e^{3}\right ) x +\left (-4 a^{5} c^{2} f +a^{4} b^{2} c f +4 a^{4} b \,c^{2} e +4 a^{4} c^{3} d -a^{3} b^{3} c e -5 a^{3} b^{2} c^{2} d +a^{2} b^{4} c d \right ) \textit {\_R}^{3}+\left (a^{4} b \,f^{3}-a^{4} c e \,f^{2}-a^{3} b^{2} e \,f^{2}-2 a^{3} b c d \,f^{2}+2 a^{3} b c \,e^{2} f +2 a^{3} c^{2} d e f -a^{3} c^{2} e^{3}+a^{2} b^{3} d \,f^{2}-2 a^{2} b^{2} c d e f +a^{2} b \,c^{2} d^{2} f +a^{2} b \,c^{2} d \,e^{2}-a^{2} c^{3} d^{2} e \right ) \textit {\_R} \right )\right )}{2}\) \(1154\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((f*x^4+e*x^2+d)/x^2/(c*x^4+b*x^2+a),x,method=_RETURNVERBOSE)

[Out]

4/a*c*(-1/8*(a*f*(-4*a*c+b^2)^(1/2)-c*d*(-4*a*c+b^2)^(1/2)-a*b*f+2*a*c*e-b*c*d)/c/(-4*a*c+b^2)^(1/2)*2^(1/2)/(
(-b+(-4*a*c+b^2)^(1/2))*c)^(1/2)*arctanh(c*x*2^(1/2)/((-b+(-4*a*c+b^2)^(1/2))*c)^(1/2))+1/8*(a*f*(-4*a*c+b^2)^
(1/2)-c*d*(-4*a*c+b^2)^(1/2)+a*b*f-2*a*c*e+b*c*d)/c/(-4*a*c+b^2)^(1/2)*2^(1/2)/((b+(-4*a*c+b^2)^(1/2))*c)^(1/2
)*arctan(c*x*2^(1/2)/((b+(-4*a*c+b^2)^(1/2))*c)^(1/2)))-d/a/x

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((f*x^4+e*x^2+d)/x^2/(c*x^4+b*x^2+a),x, algorithm="maxima")

[Out]

integrate(-((c*d - a*f)*x^2 + b*d - a*e)/(c*x^4 + b*x^2 + a), x)/a - d/(a*x)

________________________________________________________________________________________

Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 5930 vs. \(2 (177) = 354\).
time = 1.68, size = 5930, normalized size = 27.84 \begin {gather*} \text {Too large to display} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((f*x^4+e*x^2+d)/x^2/(c*x^4+b*x^2+a),x, algorithm="fricas")

[Out]

-1/2*(sqrt(1/2)*a*x*sqrt(-(a^2*b*c*e^2 + a^3*b*f^2 + (b^3*c - 3*a*b*c^2)*d^2 - 2*(a*b^2*c - 2*a^2*c^2)*d*e + 2
*(a^2*b*c*d - 2*a^3*c*e)*f + (a^3*b^2*c - 4*a^4*c^2)*sqrt(-(4*a^3*b*c^2*d*e^3 - a^4*c^2*e^4 + 4*a^5*c*d*f^3 -
a^6*f^4 - (b^4*c^2 - 2*a*b^2*c^3 + a^2*c^4)*d^4 + 4*(a*b^3*c^2 - a^2*b*c^3)*d^3*e - 2*(3*a^2*b^2*c^2 - a^3*c^3
)*d^2*e^2 - 2*(2*a^4*b*c*d*e - a^5*c*e^2 - (a^3*b^2*c - 3*a^4*c^2)*d^2)*f^2 + 4*(2*a^3*b*c^2*d^2*e - a^4*c^2*d
*e^2 - (a^2*b^2*c^2 - a^3*c^3)*d^3)*f)/(a^6*b^2*c^2 - 4*a^7*c^3)))/(a^3*b^2*c - 4*a^4*c^2))*log(-2*(3*a*b^2*c^
2*d^2*e^2 - 3*a^2*b*c^2*d*e^3 + a^3*c^2*e^4 - a^5*f^4 + (b^2*c^3 - a*c^4)*d^4 - (b^3*c^2 + a*b*c^3)*d^3*e + (a
^4*b*e - (a^3*b^2 - 4*a^4*c)*d)*f^3 - 3*(a^3*b*c*d*e - (a^2*b^2*c - 2*a^3*c^2)*d^2)*f^2 + (3*a^2*b^2*c*d*e^2 -
 a^3*b*c*e^3 + (b^4*c - 3*a*b^2*c^2 + 4*a^2*c^3)*d^3 - 3*(a*b^3*c - a^2*b*c^2)*d^2*e)*f)*x + sqrt(1/2)*((b^5*c
 - 5*a*b^3*c^2 + 4*a^2*b*c^3)*d^3 - (3*a*b^4*c - 13*a^2*b^2*c^2 + 4*a^3*c^3)*d^2*e + 3*(a^2*b^3*c - 4*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)))/(a^3*b^2*c - 4*a^4*c^2))) + sqrt(1/2)*a*x*sqrt(-(a^2*b*c*e^2 + a^3*b*f^2 + (b^3*c - 3*a*
b*c^2)*d^2 - 2*(a*b^2*c - 2*a^2*c^2)*d*e + 2*(a^2*b*c*d - 2*a^3*c*e)*f - (a^3*b^2*c - 4*a^4*c^2)*sqrt(-(4*a^3*
b*c^2*d*e^3 - a^4*c^2*e^4 + 4*a^5*c*d*f^3 - a^6*f^4 - (b^4*c^2 - 2*a*b^2*c^3 + a^2*c^4)*d^4 + 4*(a*b^3*c^2 - a
^2*b*c^3)*d^3*e - 2*(3*a^2*b^2*c^2 - a^3*c^3)*d^2*e^2 - 2*(2*a^4*b*c*d*e - a^5*c*e^2 - (a^3*b^2*c - 3*a^4*c^2)
*d^2)*f^2 + 4*(2*a^3*b*c^2*d^2*e - a^4*c^2*d*e^2 - (a^2*b^2*c^2 - a^3*c^3)*d^3)*f)/(a^6*b^2*c^2 - 4*a^7*c^3)))
/(a^3*b^2*c - 4*a^4*c^2))*log(-2*(3*a*b^2*c^2*d^2*e^2 - 3*a^2*b*c^2*d*e^3 + a^3*c^2*e^4 - a^5*f^4 + (b^2*c^3 -
 a*c^4)*d^4 - (b^3*c^2 + a*b*c^3)*d^3*e + (a^4*b*e - (a^3*b^2 - 4*a^4*c)*d)*f^3 - 3*(a^3*b*c*d*e - (a^2*b^2*c
- 2*a^3*c^2)*d^2)*f^2 + (3*a^2*b^2*c*d*e^2 - a^...

________________________________________________________________________________________

Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((f*x**4+e*x**2+d)/x**2/(c*x**4+b*x**2+a),x)

[Out]

Timed out

________________________________________________________________________________________

Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 3988 vs. \(2 (179) = 358\).
time = 8.51, size = 3988, normalized size = 18.72 \begin {gather*} \text {Too large to display} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((f*x^4+e*x^2+d)/x^2/(c*x^4+b*x^2+a),x, algorithm="giac")

[Out]

-d/(a*x) - 1/8*((2*b^4*c^3 - 16*a*b^2*c^4 + 32*a^2*c^5 - sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*c + sqrt(b^2 - 4*a*c
)*c)*b^4*c + 8*sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*c + sqrt(b^2 - 4*a*c)*c)*a*b^2*c^2 + 2*sqrt(2)*sqrt(b^2 - 4*a*
c)*sqrt(b*c + sqrt(b^2 - 4*a*c)*c)*b^3*c^2 - 16*sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*c + sqrt(b^2 - 4*a*c)*c)*a^2*
c^3 - 8*sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*c + sqrt(b^2 - 4*a*c)*c)*a*b*c^3 - sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*c
 + sqrt(b^2 - 4*a*c)*c)*b^2*c^3 + 4*sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*c + sqrt(b^2 - 4*a*c)*c)*a*c^4 - 2*(b^2 -
 4*a*c)*b^2*c^3 + 8*(b^2 - 4*a*c)*a*c^4)*a^2*d - (2*a*b^4*c^2 - 16*a^2*b^2*c^3 + 32*a^3*c^4 - sqrt(2)*sqrt(b^2
 - 4*a*c)*sqrt(b*c + sqrt(b^2 - 4*a*c)*c)*a*b^4 + 8*sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*c + sqrt(b^2 - 4*a*c)*c)*
a^2*b^2*c + 2*sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*c + sqrt(b^2 - 4*a*c)*c)*a*b^3*c - 16*sqrt(2)*sqrt(b^2 - 4*a*c)
*sqrt(b*c + sqrt(b^2 - 4*a*c)*c)*a^3*c^2 - 8*sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*c + sqrt(b^2 - 4*a*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sqrt(b^2 - 4*a*c)*c)*a^2*b
^2*c + 2*sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*c - sqrt(b^2 - 4*a*c)*c)*a*b^3*c - 16*sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt
(b*c - sqrt(b^2 - 4*a*c)*c)*a^3*c^2 - 8*sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*c - sqrt(b^2 - 4*a*c)*c)*a^2*b*c^2 -
sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*c - sqrt(b^2 - 4*a*c)*c)*a*b^2*c^2 + 4*sqrt(2)*sqrt(b^2 - 4*a*c)*sqrt(b*c - s
qrt(b^2 - 4*a*c)*c)*a^2*c^3 - 2*(b^2 - 4*a*c)*a*b^2*c^2 + 8*(b^2 - 4*a*c)*a^2*c^3)*a^2*f - 2*(sqrt(2)*sqrt(b*c
 - sqrt(b^2 - 4*a*c)*c)*a*b^5*c - 8*sqrt(2)*sqrt(b*c - sqrt(b^2 - 4*a*c)*c)*a^2*b^3*c^2 - 2*sqrt(2)*sqrt(b*c -
 sqrt(b^2 - 4*a*c)*c)*a*b^4*c^2 + 2*a*b^5*c^2 + 16*sqrt(2)*sqrt(b*c - sqrt(b^2 - 4*a*c)*c)*a^3*b*c^3 + 8*sqrt(
2)*sqrt(b*c - sqrt(b^2 - 4*a*c)*c)*a^2*b^2*c^3 + sqrt(2)*sqrt(b*c - sqrt(b^2 - 4*a*c)*c)*a*b^3*c^3 - 16*a^2*b^
3*c^3 - 4*sqrt(2)*sqrt(b*c - sqrt(b^2 - 4*a*c)*...

________________________________________________________________________________________

Mupad [B]
time = 3.52, size = 2500, normalized size = 11.74 \begin {gather*} \text {Too large to display} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((d + e*x^2 + f*x^4)/(x^2*(a + b*x^2 + c*x^4)),x)

[Out]

- atan(((x*(4*a^4*c^4*d^2 - 4*a^5*c^3*e^2 + 4*a^6*c^2*f^2 - 2*a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(1/2) + a^2*b^3*c*e^2 - 4*a^3*b*c^2*e^2 - a^2*c*e^2*(-(4*a*c - b^2)^3)^(1/2) -
b^2*c*d^2*(-(4*a*c - b^2)^3)^(1/2) - 4*a^4*b*c*f^2 - 16*a^3*c^3*d*e + 16*a^4*c^2*e*f + 2*a^2*b^3*c*d*f - 8*a^3
*b*c^2*d*f - 2*a^2*c*d*f*(-(4*a*c - b^2)^3)^(1/2) - 4*a^3*b^2*c*e*f + 12*a^2*b^2*c^2*d*e - 2*a*b^4*c*d*e + 2*a
*b*c*d*e*(-(4*a*c - b^2)^3)^(1/2))/(8*(16*a^5*c^3 + a^3*b^4*c - 8*a^4*b^2*c^2)))^(1/2) - 16*a^6*c^3*e - 4*a^4*
b^3*c^2*d + 4*a^5*b^2*c^2*e + 16*a^5*b*c^3*d))*(-(b^5*c*d^2 + a^3*b^3*f^2 + a^3*f^2*(-(4*a*c - b^2)^3)^(1/2) -
 7*a*b^3*c^2*d^2 + 12*a^2*b*c^3*d^2 + a*c^2*d^2...

________________________________________________________________________________________